import { createApp } from 'vue';
import App from './App.vue';
import router from './router/router';
// 解决v-html 的安全隐患
import VueDOMPurifyHTML from 'vue-dompurify-html';
import { setupElementPlus } from '@/plugins/elementPlus';
import { setupFcDesigner } from '@/plugins/FcDesigner';
import { setupApp } from '@/plugins/app-setup';

async function setup() {
  const app = createApp(App);
  await setupApp(app);
  app.use(VueDOMPurifyHTML);
  setupElementPlus(app);
  setupFcDesigner(app);
  app.use(router);
  app.mount('#app');
}

setup();
